package com.eascs.p2p.common.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

	
@Entity
@Table(name="p2p_investor_bank")
public class InvestorBankEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	
	/**银行卡绑定状态  0-未绑定1-待短验2-已绑定*/
	public static final int BANK_STATUS_NO=0;
	public static final int BANK_STATUS_VALIDATE=1;
	public static final int BANK_STATUS_YES=2;
	
	@Id
	private String id;
	
	@Column(name="investor_id")
	private String investorId;
	
	@Column(name="bank_no")
	private String bankNo;
	
	@Column(name="bank_status")
	private Integer bankStatus;
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="update_time")
	private Date updateTime;
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="create_time")
	private Date createTime;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getBankNo() {
		return bankNo;
	}

	public void setBankNo(String bankNo) {
		this.bankNo = bankNo;
	}

	public Integer getBankStatus() {
		return bankStatus;
	}

	public void setBankStatus(Integer bankStatus) {
		this.bankStatus = bankStatus;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getInvestorId() {
		return investorId;
	}

	public void setInvestorId(String investorId) {
		this.investorId = investorId;
	}

	@Override
	public String toString() {
		return "InvestorBankEntity [id=" + id + ", investorId=" + investorId + ", bankNo=" + bankNo + ", bankStatus="
				+ bankStatus + ", updateTime=" + updateTime + ", createTime=" + createTime + "]";
	}

	
	
	
	
	

}
